<?php
/**
 * 
 * @author tangbl
 *
 */
class ArticleAction extends CommonAction{

	//文章列表
	public function index(){
		
		$cateid = $this->_get('cateid','intval',0);
		$this->assign("cateid",$cateid);
		
		$this->display();
	}
	
	//文章详情
	public function detail(){
		$id      = $this->_get('id','intval',0);
		$cateid = $this->_param("cateid"); 
		$article = D("Article");
		
		$data    = $article->find($id);
		
		$cateid  = $this->_param("cateid");
		$this->assign("cateid",$cateid);
		
		$this->assign("detail",$data);
		$this->display();
	}
	
}
